package com.shopkeeper.selltool.ui.welcome;

import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.View;

import com.alibaba.fastjson.JSONObject;
import com.sobot.chat.SobotApi;

import net.caixiaomi.info.MainActivity;
import net.caixiaomi.info.R;
import net.caixiaomi.info.app.CommonApp;
import net.caixiaomi.info.base.BaseActivity;
import net.caixiaomi.info.model.BaseCallModel;
import net.caixiaomi.info.model.ConfigQueryModel;
import net.caixiaomi.info.model.QueryUserNoticeModel;
import net.caixiaomi.info.net.RequestService;
import net.caixiaomi.info.net.ResponseCallback;
import net.caixiaomi.info.net.ResponseError;
import net.caixiaomi.info.net.RetrofitManage;
import net.caixiaomi.info.shopkeeper.ShopKeeperActivity;
import net.caixiaomi.info.ui.about.AboutActivity;
import net.caixiaomi.info.util.Constants;
import net.caixiaomi.info.util.StatusBarUtil;

import retrofit2.Call;

public class SplashActivity extends BaseActivity {

    @Override
    protected int layout() {
        return 0;
    }


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Intent intent = new Intent(this, ShopKeeperActivity.class);
        startActivity(intent);

        finish();

//        StatusBarUtil.setStatusBarColor(this, R.color.orange_primary);
//        if (Build.VERSION.SDK_INT >= 21) {
//            View decorView = getWindow().getDecorView();
//            int option = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
//                    | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
//            decorView.setSystemUiVisibility(option);
//            getWindow().setStatusBarColor(Color.TRANSPARENT);
//        }
//        mCountDownTimer.start();
//        loadConfig();
//        if (!TextUtils.isEmpty(CommonApp.getToken())) {
//            queryUserNotice();
//        }
//        SobotApi.initSobotSDK(this, getString(R.string.SOBOT_KEY), "");
//        Intent intent = getIntent();
//        Uri uri=intent.getData();
//        if(uri==null&&!isTaskRoot()) {
//            finish();
//            return;
//        }
    }


}
